#ifndef __WINGBOT_CAN_H
#define __WINGBOT_CAN_H

#include "stm32f10x.h"
#include "GPIO_STM32F10x.h"
#include "RTE_Device.h"

#ifdef __cplusplus
extern "C" {
#endif

//CAN1接收RX0中断使能
#define CAN1_RX0_INT_ENABLE

u8 can_mode_init(u8 mode, u16 baud);                            //CAN初始化
u8 can_send();                                    //发送数据 
u8 can_read(u8 *buf);                                           //接收数据
    
#ifdef __cplusplus
 }
#endif

#endif
